package com.qinghe.pro.entity.api;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ApiColumn implements Serializable {
	private static final long serialVersionUID = 3229401800538658541L;

	private Integer id;

    private String name;

    private String priority;

    private Integer num;// 分类下记录总数

    private ApiColumn parent;

	private List<ApiColumn> children = new ArrayList<ApiColumn>();

	public ApiColumn() {
	}

	public ApiColumn(Integer id) {
		this.id = id;
	}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority == null ? null : priority.trim();
    }

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public ApiColumn getParent() {
		return parent;
	}

	public void setParent(ApiColumn parent) {
		this.parent = parent;
	}

	public List<ApiColumn> getChildren() {
		return children;
	}

	public void setChildren(List<ApiColumn> children) {
		this.children = children;
	}
}